import type { RouteRecordRaw } from 'vue-router';
import RouterView from '@/layout/routerView/index.vue';

const routes: RouteRecordRaw[] = [
  {
    path: 'underlyingData',
    name: 'underlyingData',
    component: RouterView,
    meta: {
      title: '设备管理',
      icon: 'icon-shebeiguanli',
    },
    children: [
      {
        name: 'deviceManagement',
        path: 'deviceManagement',
        component: () => import('../pages/device/index.vue'),
        meta: {
          title: '设备管理',
        },
      },
      {
        path: 'storageManagement',
        name: 'storageManagement',
        component: () => import('../pages/storage-management/storage-management.vue'),
        meta: {
          title: '储位管理',
        },
      },
      {
        path: 'containerType',
        name: 'containerType',
        component: () => import('../pages/container-type/container-type.vue'),
        meta: {
          title: '容器类型',
        },
      },
      {
        path: 'containerManagement',
        name: 'containerManagement',
        component: () => import('../pages/container-management/container-management.vue'),
        meta: {
          title: '容器管理',
        },
      },
      {
        path: 'deviceUsageRecords',
        name: 'deviceUsageRecords',
        component: () => import('../pages/device-usage-records/device-usage-records.vue'),
        meta: {
          title: '设备使用记录',
        },
      },
    ],
  },
];

export default routes;
